package org.leetcode.easy.leetcode283;

import java.util.Arrays;

public class SortTest
{
    public static void sort(int []nums)
    {

        for (int i = 0; i < nums.length-1; i++) {
            for (int j = 0; j < nums.length-1-i; j++) {
                if (nums[j]>nums[j+1])
                {
                    int temp=nums[j];
                    nums[j]=nums[j+1];
                    nums[j+1]=temp;
                }
            }
        }

    }

    public static void main(String[] args) {
        int [] nums ={12,1,3,5};
        sort(nums);

        System.out.println(Arrays.toString(nums));

    }
}
